package com.ruoyi.lvlian.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.utils.DateUtils;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.apache.commons.lang3.StringUtils;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * 合同信息对象 lv_contract_info
 *
 * @author liyuxi
 * @date 2024-07-22
 */
@Data
@ToString
public class ContractInfoDto1 {
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "合同编号不能为空")
    @ApiModelProperty(value = "合同编号")
    private String contractNum;


    @ExcelProperty("购买方税号")
    @ApiModelProperty(value = "购买方税号")
    private String buyerCode;

    @ExcelProperty("购买方联系人")
    @ApiModelProperty(value = "购买方联系人")
    private String buyerName;




    @ExcelProperty("购买方联系电话")
    @ApiModelProperty(value = "购买方联系电话")
    private String buyerPhone;

    @ExcelProperty("购买方公司")
    @ApiModelProperty(value = "购买方公司")
    private String buyerCompanyName;


    @ExcelProperty("销售方税号")
    @ApiModelProperty(value = "销售方税号")
    private String sellerCode;

    @ExcelProperty("销售方联系人")
    @ApiModelProperty(value = "销售方联系人")
    private String sellerName;

    @ExcelProperty("销售方联系电话")
    @ApiModelProperty(value = "销售方联系电话")
    private String sellerPhone;

    @ExcelProperty("销售方名称")
    @ApiModelProperty(value = "销售方名称")
    private String sellerCompanyName;


    @ExcelProperty("签订日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "签订日期",
            example = "2025-05-01",  // 设置示例时间格式
            notes = "格式：yyyy-MM-dd"  // 说明时间格式
    )
    private String signDate;

    @ExcelProperty("合同生效日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "合同生效日期",
            example = "2025-05-01",  // 设置示例时间格式
            notes = "格式：yyyy-MM-dd"  // 说明时间格式
    )
    private String startDate;

    @ExcelProperty("合同失效日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "合同失效日期",
            example = "2025-05-01",  // 设置示例时间格式
            notes = "格式：yyyy-MM-dd"  // 说明时间格式
    )
    private String endDate;

    /**
     * 开户银行
     */
    @NotBlank(message = "开户银行不能为空")
    @ApiModelProperty(value = "开户银行")
    private String openBank;
    @NotBlank(message = "银行账户不能为空")
    @ApiModelProperty(value = "银行账户")
    private String bankAccno;


}
